package com.gz.springboot.mybatisplus.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gz.springboot.mybatisplus.bean.Monster;
import com.gz.springboot.mybatisplus.dao.MonsterMapper;
import com.gz.springboot.mybatisplus.service.MonsterService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
//这里在mybatis-plus中，开发service实现类，要继承ServiceImpl<MonsterMapper,Monster>,
//MonsterService这个类实现了MonsterService接口，相当于这个实现类实现了接口
//注意ServiceImpl类内部是注入了Mapper类，所以不能把dao层下的Mapper删除
public class MonsterServiceImpl extends ServiceImpl<MonsterMapper,Monster> implements MonsterService {
//    @Resource
//    private MonsterMapper monsterMapper;

//    @Override
//    public int delById(Integer id) {
//        return monsterMapper.delById(id);
//    }
}
